package test_3_15;

public class five {
    public static void main(String[] args) {
        int [] arr={1,2,34,3,4,5,7,23,12};
        System.out.println(func(arr));

    }
    public static boolean func(int []arr)
    {
        int count=0;
        for(int i=0;i<arr.length;i++)
        {
            if(arr[i]%2!=0)
            {
                count++;
                if(count==3)
                {
                    return true;
                }
            }
            else
            {
                count=0;
            }

        }
        return false;
    }
}
